<?php $id = $this->uri->segment(3)?>
<?php echo form_open('administrador/editarPerfil/'.$this->uri->segment(3));?>
	<p>Nome</p>
	<?php echo form_input('name', $profiles->name);?>
	<p>Descricao</p>
	<?php echo form_input('description', $profiles->description);?>
	<?php foreach ($actions as $action) : ?>
		<?php if(!$action->public):?>
			<div class="action">
				<?php echo $action->uri; ?>
				<?php echo $action->description; ?>
				<?php echo form_checkbox('actions[]', $action->id, $action->checked); ?>
			</div>
		<?php endif;?>
	<?php endforeach; ?>
	<?php echo form_submit('', 'Confirmar');?>
	<?php echo anchor('administrador/deletarPerfil/'.$id, 'Deletar')?>
<?php echo form_close()?>
